package com.myiam.idm.core.model;

public class PhoneNumber {

	private long id; 
	private String countryCode;
	private String prefix;
	private String number;
	private boolean primaryContact;
	private PhoneNumberType numberType;
	
	public PhoneNumber() {}
	
	public PhoneNumber(String countryCode, String prefix, String number, PhoneNumberType type) {
		
		this.setCountryCode(countryCode);
		this.setPrefix(prefix);
		this.setNumber(number);
		this.setNumberType(type);
		
	}
	
	
	public String getPhoneAsInternationalString() {
		return countryCode + " " + prefix + " " + number; 
	}
	
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getCountryCode() {
		return countryCode;
	}
	public void setCountryCode(String countryCode) {
		this.countryCode = countryCode;
	}
	public String getPrefix() {
		return prefix;
	}
	public void setPrefix(String prefix) {
		this.prefix = prefix;
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public boolean isPrimaryContact() {
		return primaryContact;
	}
	public void setPrimaryContact(boolean primaryContact) {
		this.primaryContact = primaryContact;
	}
	public PhoneNumberType getNumberType() {
		return numberType;
	}
	public void setNumberType(PhoneNumberType numberType) {
		this.numberType = numberType;
	}

	
	
}

